import React,{useState} from 'react'

export default function ForceUpdate() {
  const [,forceUpdate]=useState()
  console.log('------render---------');
  return (
    <div>
        <button onClick={()=>{
            forceUpdate({})
        }}>强制更新</button>
    </div>
  )
}
